﻿@model IEnumerable<MsForgeReboot.Framework.Entities.UserGroup>

@{
    ViewBag.Title = "Korisničke grupe";
}

<h2>@ViewBag.Title</h2>

<div class="row-fluid">
    <div class="span9">
        <ul>
            @foreach (var item in Model)
            {
                <li>
                    <h3>
                        @Html.DisplayFor(modelItem => item.Title)
                    </h3>

                    @Html.DisplayFor(modelItem => item.Body)
                    <div>
                        @if (item.Events.Any())
                        {
                            <h4>Naredni događaji</h4>
                            <ul>
                                @foreach (var upcomingEvent in item.Events)
                                {
                                    <li>
                                        <p>@upcomingEvent.Title<span>@upcomingEvent.Begin</span></p>
                                    </li>
                                }
                            </ul>
                        }
                        else
                        {
                            <p>Nema najavljenih dogadjaja</p>
                        }
                    </div>
                </li>
            }
        </ul>
    </div>
    <div class="span3">
        <div class="well">
            <h3>Postanite predavač</h3>
            <p>Sed molestie et lectus non aliquet. Pellentesque elementum, metus eget egestas pulvinar, nunc diam lacinia massa, ac porta diam libero eu nunc. Integer dui elit, congue tempus dolor eu, gravida faucibus felis.</p>
            <p>
                <a href="#" class="btn btn-success">Saznajte više</a>
            </p>
        </div>
        <div class="well">
            <h3>Organizujte grupu</h3>
            <p>Sed molestie et lectus non aliquet. Pellentesque elementum, metus eget egestas pulvinar, nunc diam lacinia massa, ac porta diam libero eu nunc. Integer dui elit, congue tempus dolor eu, gravida faucibus felis.</p>
            <p>
                <a href="#" class="btn btn-success">Saznajte više</a>
            </p>
        </div>
    </div>
</div>
